#ifndef IMG_SENDER
#define IMG_SENDER

#ifdef  __cplusplus
extern "C" {
#endif

/* the default host:port for sending image data via HTTP */
#define IMG_HOST "localhost"
#define IMG_PORT 8081

/* send an image, basically just a blob that should be a 
 * PNG or JPEG image, to host:port. Blocking. returns 0 if ok */
extern int img_send_hp(const char* blob, int bloblen, 
		       const char* host, int port);

/* shortcut with default host:port */
extern int img_send(const char* blob, int bloblen);

#ifdef  __cplusplus
}
#endif

#endif
